<?php
namespace app\common\validate;

use think\Validate;

class ProductContent extends Validate
{
    protected $rule = [
        'name'  =>  'require',
        'unit' =>  'require',
        'keyword' =>  'require'
    ];

    protected $message = [
        'username.require' => '产品名不能为空',
        'unit.require' => '单位不能为空',
        'keyword.require' => '关键字不能为空'
    ];

}